var pro = [
    {
        addr:"北京",
        school:"北京大学",
        time:"时间待定",
        type:"双选、宣讲"
    },{
        addr:"北京",
        school:"北京化工大学",
        time:"2019/10/18",
        type:"双选、宣讲"
    },{
        addr:"北京",
        school:"北京工业大学",
        time:"2019/10/17",
        type:"宣讲"
    },{
        addr:"北京",
        school:"中国科学院大学",
        time:"2019/10/16",
        type:"宣讲"
    },{
        addr:"北京",
        school:"中国科学院化学研究所",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"天津",
        school:"天津中医药大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天津医科大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天津商业大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天津理工大学",
        time:"2019/9/25",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天津科技大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天津工业大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天津大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"天津",
        school:"南开大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"天津",
        school:"河北工业大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"天津",
        school:"天狮学院",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"唐山",
        school:"华北理工大学",
        time:"2019/10/10",
        type:"宣讲"
    },{
        addr:"保定",
        school:"河北大学",
        time:"2019/10/16",
        type:"宣讲"
    },{
        addr:"秦皇岛",
        school:"燕山大学",
        time:"2019/10/12",
        type:"宣讲"
    },{
        addr:"石家庄",
        school:"河北科技大学",
        time:"2019/10/18",
        type:"宣讲"
    },{
        addr:"石家庄",
        school:"河北医科大学",
        time:"2019/10/17",
        type:"宣讲"
    },{
        addr:"大同",
        school:"山西大同大学",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"晋中",
        school:"山西农业大学",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"运城",
        school:"运城学院",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"太原",
        school:"中北大学",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"太原",
        school:"太原理工大学",
        time:"2019/10/17",
        type:"宣讲"
    },{
        addr:"太原",
        school:"太原科技大学",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"太原",
        school:"太原理工大学现代科技学院",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"太原",
        school:"山西大学",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"济南",
        school:"山东大学（中心校区）",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"济南",
        school:"济南大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"青岛",
        school:"中国海洋大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"青岛",
        school:"青岛科技大学",
        time:"计划：10.22",
        type:"宣讲"
    },{
        addr:"合肥",
        school:"中国科学技术大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"合肥",
        school:"合肥工业大学",
        time:"10.17",
        type:"宣讲"
    },{
        addr:"合肥",
        school:"安徽大学",
        time:"计划10.14",
        type:"宣讲"
    },{
        addr:"杭州",
        school:"浙江大学",
        time:"2019/10/10",
        type:"宣讲"
    },{
        addr:"杭州",
        school:"浙江工业大学",
        time:"2019/10/24",
        type:"宣讲"
    },{
        addr:"厦门",
        school:"厦门大学",
        time:"2019/10/31",
        type:"宣讲"
    },{
        addr:"南京",
        school:"中国药科大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"南京",
        school:"南京理工大学",
        time:"2019/10/16",
        type:"宣讲"
    },{
        addr:"南京",
        school:"南京工业大学",
        time:"2019/10/17",
        type:"宣讲"
    },{
        addr:"南京",
        school:"南京大学",
        time:"时间待定",
        type:"双选"
    },{
        addr:"南京",
        school:"东南大学",
        time:"10/21/2019",
        type:"宣讲"
    },{
        addr:"无锡",
        school:"江南大学",
        time:"10/23/2019",
        type:"宣讲"
    },{
        addr:"武汉",
        school:"武汉理工大学",
        time:"时间待定",
        type:"双选"
    },{
        addr:"武汉",
        school:"武汉工程大学",
        time:"2019/10/22",
        type:"宣讲"
    },{
        addr:"武汉",
        school:"武汉大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"武汉",
        school:"华中师范大学",
        time:"10.18",
        type:"宣讲"
    },{
        addr:"武汉",
        school:"华中农业大学",
        time:"2019/10/24",
        type:"宣讲"
    },{
        addr:"武汉",
        school:"华中科技大学",
        time:"时间待定",
        type:"双选"
    },{
        addr:"武汉",
        school:"湖北大学",
        time:"时间待定",
        type:"宣讲"
    },{
        addr:"开封",
        school:"河南大学",
        time:"2019/10/14",
        type:"宣讲会"
    },{
        addr:"郑州",
        school:"郑州大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"郑州",
        school:"河南农业大学",
        time:"2019/09/25",
        type:"宣讲会"
    },{
        addr:"郑州",
        school:"河南工业大学",
        time:"2019/09/24",
        type:"宣讲会"
    },{
        addr:"郑州",
        school:"郑州轻工业大学",
        time:"2019/09/23",
        type:"宣讲会"
    },{
        addr:"成都",
        school:"西南石油大学",
        time:"2019/10/22",
        type:"宣讲"
    },{
        addr:"成都",
        school:"四川大学",
        time:"10.21",
        type:"地推院校"
    },{
        addr:"成都",
        school:"中国科学院成都有机化学研究所",
        time:"2019/10/23",
        type:"宣讲"
    },{
        addr:"成都",
        school:"西南交通大学",
        time:"2019/10/24",
        type:"宣讲"
    },{
        addr:"重庆",
        school:"重庆医科大学",
        time:"2019/10/30",
        type:"宣讲"
    },{
        addr:"重庆",
        school:"重庆大学",
        time:"2019/10/28",
        type:"宣讲"
    },{
        addr:"重庆",
        school:"西南大学",
        time:"2019/10/29",
        type:"宣讲"
    },{
        addr:"西安",
        school:"陕西科技大学",
        time:"2019/10/18日",
        type:"宣讲会"
    },{
        addr:"西安",
        school:"西北大学",
        time:"2019/10/17",
        type:"宣讲会<br>面试"
    },{
        addr:"咸阳",
        school:"西北农林科技大学",
        time:"2019/10/15",
        type:"宣讲会"
    },{
        addr:"兰州",
        school:"兰州大学",
        time:"时间待定",
        type:"双选&地推院校"
    },{
        addr:"兰州",
        school:"中国科学院兰州化学物理研究所",
        time:"时间待定",
        type:"与兰州大学合并宣讲"
    },{
        addr:"兰州",
        school:"西北民族大学",
        time:"时间待定",
        type:"专场"
    },{
        addr:"兰州",
        school:"兰州理工大学",
        time:"时间待定",
        type:"专场"
    },{
        addr:"兰州",
        school:"西北师范大学",
        time:"时间待定",
        type:"专场"
    },{
        addr:"上海",
        school:"上海有机所",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"上海",
        school:"上海药物研究所",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"上海",
        school:"华东理工大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"哈尔滨",
        school:"哈尔滨工业大学",
        time:"时间待定",
        type:"双选"
    },{
        addr:"哈尔滨",
        school:"东北林业大学",
        time:"2019/10/24",
        type:"双选、宣讲"
    },{
        addr:"长春",
        school:"长春应用化学研究所",
        time:"时间待定",
        type:"undefined"
    },{
        addr:"长春",
        school:"吉林大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"大连",
        school:"中国科学院大连化学物理研究所",
        time:"2019/10/21-22",
        type:"宣讲"
    },{
        addr:"大连",
        school:"大连理工大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"沈阳",
        school:"沈阳药科大学",
        time:"时间待定",
        type:"地推院校"
    },{
        addr:"沈阳",
        school:"东北大学",
        time:"2019/10/15-16",
        type:"宣讲"
    },{
        addr:"包头",
        school:"内蒙古科技大学",
        time:"2019/10/18",
        type:"宣讲"
    },{
        addr:"呼和浩特",
        school:"内蒙古农业大学",
        time:"2019/10/16",
        type:"宣讲"
    },{
        addr:"呼和浩特",
        school:"内蒙古大学",
        time:"2019/10/14",
        type:"宣讲"
    },{
        addr:"呼和浩特",
        school:"内蒙古工业大学",
        time:"2019/10/15",
        type:"宣讲"
    },{
        addr:"广州",
        school:"中山大学",
        time:"2019/11/5",
        type:"宣讲"
    },{
        addr:"福建",
        school:"厦门大学",
        time:"2019/10/31",
        type:"宣讲"
    }
];

$(".addr li").click(function () {
    $(this).addClass("td_active");
    $(".addr li").not($(this)).removeClass("td_active");
    var city = $(this).text();
    console.log(city);
    var info = "";
    for (var i in pro){
        if (pro[i].addr === city){
            info+=
                "<tr>\n" +
                "      <td>"+pro[i].school+"</td>\n" +
                "      <td>"+pro[i].time+"</td>\n" +
                "</tr>"
        }
    }
    $(".xc_tab tbody").html(info);

});